package com.gmrz.uas.plugin.uasextend;

import com.gmrz.uas.plugin.exception.PluginException;
import com.gmrz.uas.plugin.provider.ServiceProvider;

/**
 * Created by gongyuqiang on 2017/5/25.
 */
public interface RestExtendPlugin {

    /**
     * 处理get请求
     * @param request
     * @return
     */
    String processGet(String request) throws PluginException;

    /**
     * 处理post请求
     * @param request
     * @return
     */
    String processPost(String request) throws PluginException;
    /**
     * 设置UAS服务provider
     */
    void setServiceProvider(ServiceProvider provider);
}
